package com.itqf.ipmsys.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.itqf.ipmsys.dto.PoliceSituationDto;
import com.itqf.ipmsys.entity.PoliceSituation;
import com.itqf.ipmsys.vo.PoliceSituationListVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 警情表 Mapper 接口
 * </p>
 *
 * @author corn
 * @since 2021-09-22
 */
@Service
public interface PoliceSituationMapper extends BaseMapper<PoliceSituation> {

    /**
     * 我的警情
     * @return
     */
    IPage<Map<String, Object>> findPstId(IPage<Map<String, Object>> page, PoliceSituationDto policeSituationDto);

    List<PoliceSituationListVO> selectPoliceSituationList(@Param("policeSituationDto") PoliceSituationDto policeSituationDto,@Param("index") int index);

    int selectPoliceSituationTotal(@Param("policeSituationDto") PoliceSituationDto policeSituationDto);
}
